import Game from '@/views/Game.vue';
import Edit from '@/views/Edit.vue';
import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: 'game',
    },
    {
      path: '/game',
      component: Game,
      name: 'Game',
    },
    { path: '/edit', component: Edit, name: 'Edit' },
  ],
});

export default router;
